#include "include/BIOServer.h"
#include "include/NIOServer.h"
#include "include/SkipList.h"
#include "include/MyRedisD.h"
#include "include/MyINI.h"
#include "include/TcpClient.h"
#include "include/MyRedisC.h"
#include "include/MyHttpServer.h"

// ./xmain c or s
void test_redis(int argc, char** argv)
{
    if (argc != 2) {
        printf("use: c or s\n");
    }
    if (argv[1][0] == 'c') {
        testMyRedisC();
    } else {
        testMyRedisD();
    }
}

int main(int argc, char** argv)
{
    // testBIOServer();
    NIOServer("0.0.0.0", 8000).startNIOServer();
    // testMyHttpServer(); // startNIOServer

    // test_redis(argc, argv);

    // testSkipTable();
    // testMyRedisD();

    // test_my_ini();

    // testTcpClient();
    // testMyRedisC();

    return 0;
}
